<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	    <link rel="stylesheet" href="../../css/aui.css">
	    <link rel="stylesheet" href="../../css/huabao.css">
		<link rel="stylesheet" href="../../css/pulice.css">
		<script src="../../js/jquery.min.js"></script>
		<script src="../../js/api.js"></script>
		<script src="../../js/libs/zepto.min.js"></script>
		<script src="../../js/vue.min.js"></script>
		<script src="../../js/vue-resource.min.js"></script>
		<script src="../../js/aui-toast.js"></script>
		<script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
		<script>
			setToken();
            $(function () {
                $('.hm-bar').load('../../data/headerOther.html',function (data) {
                    $(this).find('.head-main').text('我的积分');
                    $(this).find('.hm-bar-box').css('background', '#2a8fff').css('position','static');
                    $(this).find('.head-left').on('tap',function () {
                        window.history.back();
                    })
                });
            })
		</script>
	    <title>我的积分</title>
	</head>
	<body>
	<div class="hm-bar"></div>
		<div id="box">

			<!--身体-->
			<div class="WD-shenti">
				<div style="background-image: url(../../img/huabaoBJ.png)">
					<div class="st-top">
						积分余额
					</div>
					<div class="st-info">
						{{account.score}}
					</div>
				</div>
				<div class="WD-nav">
					<div class="WD-info flex" @click="location.href='../businessUsers/todaybill.html'">
						<div class="lmLogo flex">
							<img src="../../img/ZD.png" />
							<p>当日账单</p>
						</div>
						<div class="goIcon">
							<img src="../../img/goIcon.png" />
						</div>
					</div>
					
					<div class="WD-info flex nobor" @click="location.href='../businessUsers/jifenjilu.html'">
						<div class="lmLogo flex">
							<img src="../../img/jf.png" />
							<p>积分记录</p>
						</div>
						<div class="goIcon">
							<img src="../../img/goIcon.png" />
						</div>
					</div>
				</div>
				<div class="WD-nav">
					<div class="WD-info flex ">
						<div class="lmLogo flex">
							<img src="../../img/kuCun.png" />
							<p>库存积分</p>
						</div>
						<div class="red-color">
							{{returnFloat(account.stockScore)}}
						</div>
					</div>
					<div class="WD-info flex">
						<div class="lmLogo flex">
							<img src="../../img/jf3.png" />
							<p>申请积分</p>
						</div>
						
						<div class="goIcon">
							<img src="../../img/goIcon.png" />
						</div>
					</div>
					<div class="WD-info flex ">
						<div class="lmLogo flex">
							<img src="../../img/jf2.png" />
							<p>赠送积分</p>
						</div>
						
						<div class="goIcon">
							<img src="../../img/goIcon.png" />
						</div>
					</div>
					<div class="WD-info flex nobor" @click="location.href='../businessUsers/kucunjifenjilu.html'">
						<div class="lmLogo flex">
							<img src="../../img/kcJFjl.png" />
							<p>库存积分记录</p>
						</div>
						
						<div class="goIcon">
							<img src="../../img/goIcon.png" />
						</div>
					</div>
				</div>
				<div class="WD-nav">
					<div class="WD-info flex" >
						<div class="lmLogo flex">
							<img src="../../img/jf1.png" />
							<p>待发积分</p>
						</div>
						<div class="red-color">
							{{returnFloat(account.freezeScore)}}
						</div>
					</div>
					<div class="WD-info flex nobor" @click="location.href='../businessUsers/kucunjifenjilu.html'">
						<div class="lmLogo flex">
							<img src="../../img/JFjl.png" />
							<p>待发积分记录</p>
						</div>
						<div class="goIcon">
							<img src="../../img/goIcon.png" />
						</div>
					</div>
				</div>
				<div class="WD-nav">
					<div class="WD-info flex ">
						<div class="lmLogo flex">
							<img src="../../img/dftbjl.png" />
							<p>待发特别奖励积分</p>
						</div>
						<div class="red-color">
							{{returnFloat(account.specialScore)}}
						</div>
					</div>
					<div class="WD-info flex nobor" @click="location.href='../normalUser/tiebeiIntegral.html'">
						<div class="lmLogo flex">
							<img src="../../img/dftbjiangl.png" />
							<p>待发特别奖励积分记录</p>
						</div>
						<div class="goIcon">
							<img src="../../img/goIcon.png" />
						</div>
					</div>
				</div>
			</div>
		</div>
	<script>

        var app = new Vue({
            el: '#box',
            data:{
                account: {}
            },
            mounted:function () {
                this.$nextTick(function(){
                    this.aaa();
                })
            },
            methods: {
                aaa:function () {
                    this.$http.get(SURL+"app/site/scoreIndex").then(function (res) {
                        console.log(res.body.data);
                        if(res.body.status == 1){
                          //  alert(1)
                            this.account = res.body.data;
                        }else {

                        }
                    }).catch(function (req) {

                    })
                }
            }
        })
	</script>
	</body>
</html>
